const mongoose = require("mongoose");
//activity dataformat
const activityScheme = new mongoose.Schema({
    "activity_id":String,
    'tag':String,
    'activity_title':String,
    'start_time':Date,
    'end_time':Date,
    'costIntegral':String,
    'url':String,
    'qrCode':String,
    'status':String,
    'participateNum':Number,
    'creator_name':String,
    'drawsNum':Number,
    'drawsType':String,
    'virtualNums':Number,
    'prize':[
        {
            'level':String,
            'odd':Number,
            'description':String,
            'nums':Number,
            'url':String,
            'currentLotteryNums':Number,
        }
    ]

})
module.exports = mongoose.model('activity',activityScheme);